package structuralpattern.decorator;
// 配料
public class Garnish extends FastFood{
    private FastFood fastFood;

    public Garnish(float price, String desc, FastFood fastFood) {
        super(price, desc);
        this.fastFood = fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    @Override
    public float cost() {
        return 0;
    }
}
